#include "LifeBonus.h"
#include "Stage.h"

LifeBonus::LifeBonus() {
	this->setTexture((Texture*)DaoFactory::getInstance()->getDao("Texture")->find("firefox"));
	/*Sacar el dao de aki*/
	this->setRadius(15);
	this->setLineColor(new Color("255","255","255"));
	this->setSurface(SketcherHelper::getInstance()->createCircleSurface(this->getRadius(),this->getTexture(),this->getLineColor()));
	this->setId("LifeBonus");
}

LifeBonus::~LifeBonus(){
}

void LifeBonus::doMagic(void* stage){
	(*((Stage*)stage)->getVida())++;
	((Stage*)stage)->getVida()->draw();
}

void LifeBonus::undoMagic(void* stage){
}
